package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.FriendshipReply;
import cn.wolfcode.trip.base.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FriendshipReplyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FriendshipReply entity);

    FriendshipReply selectByPrimaryKey(Long id);

    List<FriendshipReply> selectAll();

    int updateByPrimaryKey(FriendshipReply entity);

    int selectTotalCountForUnreadComment(User currentUser);

    List<FriendshipReply> selectReply(@Param("uId") Long id, @Param("read") Boolean read);

    void updateRead(Long friendshipReplyId);
}